package com.hmall.item;

import org.apache.logging.log4j.Logger;
import org.slf4j.event.Level;

import java.util.function.BiFunction;
import java.util.function.Function;
import java.util.function.Supplier;


public class Sample7 {
    static Logger logger = init(Level.DEBUG);

    public static void main(String[] args) {
        logger.debug("{}");

        Supplier<Student> s1 = Student::new;
        Function<String,Student> s2 = Student::new;
        BiFunction<Integer,String,Student> s3 = Student::new;


    }
    private static Logger init(Level level) {
            return null;
    }


    static class Student{
        private int age;
        private String name;

        public Student() {
        }

        public Student(String name) {
            this.name = name;
        }

        public Student(int age, String name) {
            this.age = age;
            this.name = name;
        }
    }

}
